import React from 'react';
import ReactDOM from 'react-dom';
import Router from './routers/index';
import './resources/iconcss/iconfont.css';
import thunk from 'redux-thunk';
import reducer from './store/index';
import {applyMiddleware, createStore} from 'redux';
import {composeWithDevTools} from 'redux-devtools-extension';
import { Provider } from 'react-redux';
import './index.css';
const store = createStore(reducer,composeWithDevTools(
    applyMiddleware(thunk)));

ReactDOM.render( 
<Provider store={store}>
    <Router  />
</Provider>, document.getElementById('root'));
